'use strict';

const Controller = require('egg').Controller;

class MenuController extends Controller {
  async menu1() {
    const { ctx } = this;
    const res = await ctx.service.menu.find();
    ctx.body = res;
  }

  async menu2() {
    const { ctx, app } = this;
    ctx.success({
      a: 1,
      b: 2,
      app,
    });
  }
}

module.exports = MenuController;
